package com.everflourish.yeah100.entity.statistics;

import com.everflourish.yeah100.utils.CommonUtil;
import com.everflourish.yeah100.utils.StringUtil;

import java.io.Serializable;

public class ClassStatisticInfo implements Serializable {
    private static final long serialVersionUID = 5748674740345100971L;
    // 班级的id
    private String classId;
    // 班级名称
    private String className;
    // 班级大小
    private String classSize;
    // 平均分
    private String avgScore;
    // 最高分数
    private String highestScore;
    // 最低分数
    private String lowestScore;
    // 60分以下
    private String subtotalLessThan60;
    // 60分到70分
    private String subtotal60To70;
    // 70分到80分
    private String subtotal70To80;
    // 80分到90分
    private String subtotal80To90;
    // 90分到100分
    private String subtotal90To100;
    private Float passRate;

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassSize() {
        return classSize;
    }

    public void setClassSize(String classSize) {
        this.classSize = classSize;
    }

    public String getAvgScore() {
        avgScore = CommonUtil.formatDouble(
                StringUtil.parseDouble(avgScore, 0), "#0.0");
        return avgScore;
    }

    public void setAvgScore(String avgScore) {
        this.avgScore = avgScore;
    }

    public String getHighestScore() {
        return highestScore;
    }

    public void setHighestScore(String highestScore) {
        this.highestScore = highestScore;
    }

    public String getLowestScore() {
        return lowestScore;
    }

    public void setLowestScore(String lowestScore) {
        this.lowestScore = lowestScore;
    }

    public String getSubtotalLessThan60() {
        return subtotalLessThan60;
    }

    public void setSubtotalLessThan60(String subtotalLessThan60) {
        this.subtotalLessThan60 = subtotalLessThan60;
    }

    public String getSubtotal60To70() {
        return subtotal60To70;
    }

    public void setSubtotal60To70(String subtotal60To70) {
        this.subtotal60To70 = subtotal60To70;
    }

    public String getSubtotal70To80() {
        return subtotal70To80;
    }

    public void setSubtotal70To80(String subtotal70To80) {
        this.subtotal70To80 = subtotal70To80;
    }

    public String getSubtotal80To90() {
        return subtotal80To90;
    }

    public void setSubtotal80To90(String subtotal80To90) {
        this.subtotal80To90 = subtotal80To90;
    }

    public String getSubtotal90To100() {
        return subtotal90To100;
    }

    public void setSubtotal90To100(String subtotal90To100) {
        this.subtotal90To100 = subtotal90To100;
    }

    public Float getPassRate() {
        return passRate;
    }

    public void setPassRate(Float passRate) {
        this.passRate = passRate;
    }
}
